projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cda2316
)
(find-buffer-visiting): Don't check buffer-file-number
author
Richard M. Stallman
<rms@gnu.org>
Thu, 14 Apr 1994 02:27:36 +0000
(
02:27
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 14 Apr 1994 02:27:36 +0000
(
02:27
+0000)
unless buffer-file-name is non-nil.
lisp/files.el
patch
|
blob
|
history
diff --git
a/lisp/files.el
b/lisp/files.el
index 2b3590176f3cf040c19973deed27a8cb00329b42..f36dc409e467b4b6be424e0f70777cb838f814d8 100644
(file)
--- a/
lisp/files.el
+++ b/
lisp/files.el
@@
-596,7
+596,8
@@
If there is no such live buffer, return nil."
(while (and (not found) list)
(save-excursion
(set-buffer (car list))
- (if (and (equal buffer-file-number number)
+ (if (and buffer-file-name
+ (equal buffer-file-number number)
;; Verify this buffer's file number
;; still belongs to its file.
(file-exists-p buffer-file-name)